<template>
	<view>
		<web-view :webview-styles="webviewStyles" :src="weburl"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				weburl: '',
				webviewStyles: {
					progress: {
						color: "#FF3333"
					}
				}
			}
		},
		onLoad(event) {
			this.weburl = decodeURIComponent(event.url)
			console.log(this.weburl)
			if (event.title) {
				uni.setNavigationBarTitle({
					title: event.title
				})
			}
		}
	}
</script>